package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.CommonVisibleRangeTeamEntity;
import com.xbongbong.saas.domain.entity.UserAndDepTeamEntity;
import com.xbongbong.saas.domain.entity.UserTeamEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author 李翔
 * @date 2022/11/10
 * @description
 */
@Repository
@Mapper
public interface UserAndDepTeamDao {

    List<UserAndDepTeamEntity> findBaseEntitys(@Param("param") Map<String, Object> param, @Param("table") String table);

    List<CommonVisibleRangeTeamEntity> findEntitys(@Param("param") Map<String, Object> param, @Param("table") String table);

    Integer deleteByKey(@Param("id") Long id, @Param("corpid") String corpid, @Param("table") String table);
}
